import request from "@/utils/request";

/**
 * 标签列表
 */
export const getTagList = () => {
    return request({
        url: "/mall/shop/product/collect/get-label-list",
        method: "post"
    })
}
/**
 * 获取收藏夹列表
 */
export const getGoodsList = (data) => {
    return request({
        url: "/mall/shop/product/collect/get-collect-products",
        method: "post",
        data
    })
}
/**新增标签 */
export const addTag = (labelName) => {
    return request({
        url: '/mall/shop/product/collect/add-label',
        method: 'post',
        data: {
            labelName
        }
    })
}
/**
 * 删除标签
 */
export const delTag=(labelId)=>{
    return request({
        url:"/mall/shop/product/collect/del-label",
        method: 'post',
        data: {
            labelId
        }
    })
}

export const delGoodsTag=(data)=>{
    return request({
        url:"/mall/shop/product/collect/del-product-label",
        method:'post',
        data
    })
}
export const addGoodsTag=(data)=>{
    return request({
        url:"/mall/shop/product/collect/add-product-label",
        method:'post',
        data
    })
}